<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="EditRegion.MVC"%>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Multiple Editable Regions
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
  <link rel="stylesheet" href="../../Content/jquery.wysiwyg.css" type="text/css" />
  <link rel="stylesheet" href="../../Content/examples.css" type="text/css" />
  <script type="text/javascript" src="./../Scripts/jquery.wysiwyg.js"></script>
  
  <script type="text/javascript">
      $(function() {
        $('#MultipleRegionsTitle').wysiwyg();
        $('#MultipleRegionsSummary').wysiwyg();
        $('#MultipleRegionsDescription').wysiwyg(); 
      });
  </script>
   
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Multiple Editable Regions</h2>
    <% Html.RenderPartial("AuthorizationSuggestion"); %>

    <h3>Sample</h3>
    
    <h4 class="title"><%= Html.EditRegion("MultipleRegionsTitle").Label("Title").EditableForUser("Administrator").DoNotEncode()%></h4>
    
    <p class="summary">
        <%= Html.EditRegion("MultipleRegionsSummary").Label("Summary").EditableForUser("Administrator").DoNotEncode()%>
    </p>
    
    <p class="description">
        <%= Html.EditRegion("MultipleRegionsDescription").Label("Description").EditableForUser("Administrator").DoNotEncode()%>
    </p>
</asp:Content>
